<div id='plugin_imgUpload_imgArea'></div>


<script>
	var plugin_imgUpload_imgs = JSON.parse(sessionStorage.issue_img_upload);
	var plugin_imgUpload_img_src = 'http://tp-service.b0.upaiyun.com/imgs/';
	for(var i=0;i<plugin_imgUpload_imgs.length;i++){
		$('#plugin_imgUpload_imgArea').append("<div style='position:relative;height:50px;float:left;margin:10px;'><img src='"+plugin_imgUpload_img_src+plugin_imgUpload_imgs[i]+"!bw' style='height:100%'/><img src='Public/Img/ico-close.png' style='position:absolute;top:-10px;right:-10px' class='plugin_imgUpload_imgDel' img_src='"+plugin_imgUpload_imgs[i]+"' /></div>");
	}

	$('.plugin_imgUpload_imgDel').click(function(){
		var del_img_src = $(this).attr('img_src');
		if(!confirm('确认删除？')){
			exit;
		}
		$.ajax({
			url:'interface.php',
			data:{
				type:'token',
			},
			success:function(token){
				$.ajax({
					url:'interface.php?type=issue_img_del',
					type:'post',
					data:{
						token:token,
						del_src:del_img_src
					},
					success:function(res){
						var del_img_src_index = plugin_imgUpload_imgs.indexOf(del_img_src);
						plugin_imgUpload_imgs.splice(del_img_src_index,1);
						sessionStorage.issue_img_upload = JSON.stringify(plugin_imgUpload_imgs);
						//location.reload(1);
						plugin_issue_img_view();
					}
				})
			}
		})
	});
</script>